<?php
		//$user = (isset($_COOKIE['user_name'])?$_COOKIE['user_name']:'User');
		$user = (isset($_SESSION['user_name'])?$_SESSION['user_name']:'User');
?>

<div id="userMenu">
	<h4 align="center"><?php echo ucwords($user);?>'s Menu </h4>
    <ul>
    	<?php
			if ($adm)
				echo '<li><a href="admin.php">Admin Page</a>';
		?>
        <li><a id="profile" href="content.php?type=edit&content_type=user&id=<?php echo $_SESSION['user_id'];?>">Update User Profile</a>
            </li>
        <li><a id="newAnn" href="content.php?type=new&content_type=announcement">New Announcement</a>
            </li>
        <li><a id="myAnn" href="content.php?my=announcement&uid=<?php echo $_SESSION['user_id'];?>">My Announcements</a>
            </li>
        <li><a id="newBiz" href="content.php?type=new&content_type=business">New Business Profile</a>
            </li>
        <li><a id="myBiz" href="content.php?my=business&uid=<?php echo $_SESSION['user_id'];?>">My Business Profiles</a>
            </li>
	</ul>
</div>
<script>
/*
	$(document).ready(function(){
		$("a#newAnn").click(function(){
			$("div#content").hide().fadeIn(1500).load("site/forms/newAnnouncement.php");
		});
		
		$("a#newBiz").click(function(){
			$("div#content").hide().fadeIn(1500).load("site/forms/newBusiness.php");
		});
	});
	*/
</script>